home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_8539.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  23 lines

  1. -- card: 8539 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 6
  9. ----- text -----
  10. 3.  Functions  
  11.  
  12.  
  13. -- part contents for background part 7
  14. ----- text -----
  15. 83
  16.  
  17. -- part contents for background part 4
  18. ----- text -----
  19. In C there is no syntactic distinction between procedures and functions.  A procedure is simply a function which does not return a useful value.  Traditionally C programs were constructed by decomposing the overall task into a hierarchy of functions and procedures.
  20.  
  21. As will be discussed in Chapter 4, TC and C++ provide features which encourage the object-oriented programming approach, where the overall task is decomposed instead into a collection of interacting objects, each of which encapsulates data and the procedures - or "member functions" - which act upon this data.
  22.  
  23. An understanding of C functions is required before the programmer can construct objects, and traditional C functions also find uses in such programs.